box.schema.user.passwd() | Tarantool

box.schema.user.passwd()

box.schema.user.passwd([name, ]new_password)

Sets a password for a currently logged in or a specified user:

  • A currently logged in user can change their password using box.schema.user.passwd(new_password).
  • An administrator can change the password of another user with box.schema.user.passwd(name, new_password).
Parameters:
  • user-name (string) – name
  • password (string) – new_password

Example:

box.schema.user.passwd('foobar')
box.schema.user.passwd('testuser', 'foobar')
Found what you were looking for?
Feedback